home *** CD-ROM | disk | FTP | other *** search
- Path: senator-bedfellow.mit.edu!usenet
- From: Darrel K Robertson <dkr1@MIT.EDU>
- Newsgroups: comp.lang.c++
- Subject: new with multidimensional arrays
- Date: Mon, 08 Apr 1996 21:13:39 -0400
- Organization: Massachusetts Institute of Technology
- Message-ID: <3169B9C3.2A10@MIT.EDU>
- NNTP-Posting-Host: m11-113-8.mit.edu
- Mime-Version: 1.0
- Content-Type: text/plain; charset=us-ascii
- Content-Transfer-Encoding: 7bit
- X-Mailer: Mozilla 2.0 (X11; I; SunOS 5.3 sun4m)
-
- Hi, I wonder if anyone can help me. I want to use "new" to create a
- multidimensional array, but don't know how. So far I have:
- complex *grid;
- scanf("%d %d", &nc, &nr);
- grid = new complex[nc][nr];
-
- Unfortunately this won't work. Any info would be much appreciated.
- Darrel.
-